package com.soecode.wxtools.bean.result;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;

@Data
public class WxError{

	private int errcode;

	private String errmsg;

	public WxError() {
	}
	
	public WxError(int errcode, String errmsg) {
		this.errcode = errcode;
		this.errmsg = errmsg;
	}
	

	public static WxError fromJson(String json) {
		return JSONObject.parseObject(json, WxError.class);
	}


	@Override
	public String toString() {
		return "WxError [errcode=" + errcode + ", errmsg=" + errmsg + "]";
	}

	

}
